﻿using UnityEngine;
using System.Collections;
using UnityEngine.Assertions;

public class TankTurret : MonoBehaviour {
    private Transform _firePointTransform = null;
    public Vector3 firePoint {
        get {
            return _firePointTransform.position;
        }
    }

    private Transform _cameraPointTransform = null;
    public Vector3 cameraPoint {
        get {
            return _cameraPointTransform.position;
        }
    }

    public void Start() {
        _firePointTransform = transform.FindChild("FirePoint");
        Assert.IsNotNull<Transform>(_firePointTransform, "fire point is null");

        _cameraPointTransform = transform.FindChild("CameraPoint");
        Assert.IsNotNull<Transform>(_cameraPointTransform, "Camera Point is null");
    }
}
